package com.dreamsky.life.model;

import java.util.List;

import com.jfinal.plugin.activerecord.Model;

/**
 * 电器模型
 * 
 * @author David
 * 
 */
public class Electric extends Model<Electric> {

	public static Electric dao = new Electric();

	/**
	 * 得到用户的电器
	 * 
	 * @return
	 */
	public List<Electric> userEletric(Object userId) {
		String sql = "select id,ele_name,ele_state from lf_electric where user_id=?";

		return Electric.dao.find(sql, userId);

	}
}
